#ifndef _UTIL_H
#define _UTIL_H

void generate_random();
unsigned char is_near_thousand(float num);
float scale_to_near_thousand(float num);
int find_peak_index(float arr[], float indices[], short size, float trigger_level);
float calculate_average_difference(float data[], short count);
unsigned char is_peak_value_mono_desc(float data[], float indices[], short count);

#endif
